import {getlink} from "@/api/getlogin.js"
export let sort ={
    state:{
        onearr:[],
        twoarr:[],
        threearr:[],
        fourarr:[],
        fivearr:[]
    },
    mutations:{
        axioss(state,payload){
            state.onearr=payload,
            console.log(state.onearr);
            // state.twoarr=payload.data.twoarr,
            // state.threearr=payload.data.threearr,
            // state.fourarr=payload.data.fourarr,
            // state.fivearr=payload.data.fivearr
        }
    },
    actions:{
        axiosjt(context,payload){
            getlink(payload.url).then((ok) =>{
                console.log(ok);
                console.log(ok.data);
                context.commit("axioss",ok.data);
            }).catch((err) =>{
                console.log(err);
            })
        }
    }
}